package springboot1706.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import springboot1706.bean.TestBean;
import springboot1706.dao.TestMapper;
import springboot1706.service.TestService;

@Service("testService")
public class TestServiceImpl implements TestService {
	
	@Resource
	private TestMapper testMapper;

	@Override
	public TestBean getTest(int id) {
		return testMapper.getTest(id);
	}

	@Override
	@Transactional
	public void createOrder() {
		//1、写 订单 表
		//2、写 订单明细
		//3、清 购物车
		//4、减少库存
	}

}
